from django.urls import path
from .views import ForumPostListView, ForumPostDetailView, PostCommentListCreateView, ForumPostCreateView, \
    ForumPostImageUploadView, PostLikeView, PostFavoriteToggleView, MyFavoritePostsView

urlpatterns = [
    path('forum/posts/', ForumPostListView.as_view(), name='forum-post-list'),
    path('forum/posts/<int:pk>/', ForumPostDetailView.as_view(), name='post-detail'),
    path('forum/posts/<int:post_id>/comments/', PostCommentListCreateView.as_view(), name='post-comments'),
    path('forum/posts/create/', ForumPostCreateView.as_view(), name='forum-post-create'),
    path('forum/posts/<int:post_id>/upload_image/', ForumPostImageUploadView.as_view(), name='post-upload-image'),
    path('forum/posts/<int:post_id>/like/', PostLikeView.as_view(), name='post-like'),
    path('forum/posts/<int:post_id>/favorite/', PostFavoriteToggleView.as_view(), name='post-favorite'),
    path('forum/my-favorites/', MyFavoritePostsView.as_view(), name='my-favorites'),
]
